//
//  UIBarButtonItem+Extensions.swift
//  tangbinWeibo
//
//  Created by 唐斌 on 2017/1/9.
//  Copyright © 2017年 唐斌. All rights reserved.
//

import UIKit

extension UIBarButtonItem
{
    convenience init(title: String, fontSize:CGFloat = 16, target:AnyObject?, action: Selector)
    {
        let btn: UIButton = UIButton.text(withButton: title, fontSize: fontSize, normalColor: UIColor.darkGray, highlightedColor: UIColor.orange)
        btn.addTarget(target, action: action, for: .touchUpInside)
        self.init(customView: btn)
    }
}



















